package com.heima.common.exception;

import com.heima.model.common.enums.AppHttpCodeEnum;

/**
 * 异常抛出工具类
 */
public class CustomizeExceptionBuilder {
    public static void builder(AppHttpCodeEnum codeEnum){
        throw new CustomizeException(codeEnum);
    }

    public static void builder(AppHttpCodeEnum codeEnum, String message){
        throw new CustomizeException(codeEnum, message);
    }
}
